package com.xqledu.admin.entry.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description: 用户登录request
 * @author: 向其林
 * @date: 2023/5/7 0007 20:01
 * @version: 1.0
 **/
@Data
@ApiModel("user-login-request")
public class UserLoginRequest extends PageRequest{
    @ApiParam(value = "账号-用户手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "必须为数字，并且长度为11")
    private String openCode;
    @ApiParam(value = "密码")
    @NotBlank(message = "密码不得为空")
    private String password;
}
